package com.example.petshopping.model;

public class Product {
    private int id;
    private String title;
    private String price;
    private int imageResource;
    private boolean isPromoted;
    private boolean isFavorite;
    private String seller;
    private int sellerAvatarResource;
    private String auctionEndTime;

    public Product(int id, String title, String price, int imageResource, boolean isPromoted, boolean isFavorite, 
                  String seller, int sellerAvatarResource, String auctionEndTime) {
        this.id = id;
        this.title = title;
        this.price = price;
        this.imageResource = imageResource;
        this.isPromoted = isPromoted;
        this.isFavorite = isFavorite;
        this.seller = seller;
        this.sellerAvatarResource = sellerAvatarResource;
        this.auctionEndTime = auctionEndTime;
    }

    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getPrice() {
        return price;
    }

    public int getImageResource() {
        return imageResource;
    }

    public boolean isPromoted() {
        return isPromoted;
    }

    public boolean isFavorite() {
        return isFavorite;
    }

    public void setFavorite(boolean favorite) {
        isFavorite = favorite;
    }
    
    public void toggleFavorite() {
        this.isFavorite = !this.isFavorite;
    }

    public String getSeller() {
        return seller;
    }

    public int getSellerAvatarResource() {
        return sellerAvatarResource;
    }

    public String getAuctionEndTime() {
        return auctionEndTime;
    }
} 